package org.jim.core.helper;

import org.jim.core.helper.cs.ICsChatHelper;
import org.jim.core.helper.cs.ICsSessionHelper;
import org.jim.core.helper.im.IFriendHelper;
import org.jim.core.helper.im.IGroupHelper;
import org.jim.core.listener.ImStoreBindListener;
import org.jim.core.packets.cs.session.vo.JimSessionResp;

/**
 * @author WChao
 * @date 2018年4月9日 下午4:31:51
 */
public interface MessageHelper {
    /**
     * 获取IM开启持久化时绑定/解绑群组、用户监听器;
     *
     * @return
     */
    ImStoreBindListener getBindListener();


    ICsChatHelper getCsChatHelper();

    IChatHelper getChatHelper();

    ICsSessionHelper getCsSessionHelper();

    IUserHelper getUserHelper();

    IGroupHelper getGroupHelper();

    IFriendHelper getFriendHelper();


    /**
     * 检查并获取Session
     *
     * @param sessionId 会话Id
     * @param chatType  聊天类型
     */
    JimSessionResp getSession(String sessionId, int chatType);


}
